{layout name="public:layout" /}
<h4 class="text-center text-success">{$title}</h4>
<table class="table table-hover">
    <thead class="thead-dark">
    <tr class="text-center">
        <td>ID</td>
        <td>文章名称</td>
        {eq name="$Think.session.admin_level" value="1"}
        <td>文章作者</td>
        {/eq}
        <td>所属栏目</td>
        <td>阅读量</td>
        <td>注册时间</td>
        <td colspan="2">操作</td>
    </tr>
    </thead>
    <tbody>
        {volist name="$artList" id="art" empty="$empty"}
        <tr class="text-center">
            <td>{$art.id}</td>
            <td>{$art.title}</td>
            {eq name="$Think.session.admin_level" value="1"}
            <td>{$art.user_id|getUserName}</td>
            {/eq}
            <td>{$art->cate->name}</td>
            <td>{$art.pv}</td>
            <td>{$art.create_time}</td>
            <td><a href="{:url('art/artEdit',['id'=>$art.id])}">编辑</a></td>
            <td><a href="#">删除</a></td>

        </tr>
        {/volist}

    </tbody>

</table>
<div class="text-center"><div class="text-center d-inline-block">{$artList|raw}</div></div>